package sls

type Config struct {
	AccessKeyId     string
	AccessKeySecret string
	Endpoint        string
}

func (c *Config) SetAccessKeyId(v string) *Config {
	c.AccessKeyId = v
	return c
}

func (c *Config) SetAccessKeySecret(v string) *Config {
	c.AccessKeySecret = v
	return c
}

func (c *Config) SetEndpoint(v string) *Config {
	c.Endpoint = v
	return c
}

func (c *Config) IsSetRequiredFields() bool {
	if c == nil {
		return false
	}
	if c.AccessKeyId == "" || c.AccessKeySecret == "" || c.Endpoint == "" {
		return false
	}
	return true
}
